<script>
	// import {
	// 	store,
	// 	mutations
	// } from '@/uni_modules/uni-id-pages/common/store.js'
	import {
		connectWebSocket
	} from '@/api/connectWebSocket.js'

	export default {
		onLaunch: function() {
			console.log('App Launch')
			uni.getNetworkType({
				success: function(res) {
					// console.log(res.networkType);
					if (res.networkType !== 'wifi') {
						uni.showModal({
							title: '提示',
							content: '非wifi环境将消耗较多流量，请注意流量消耗！',
							showCancel: false
						})
					}
				}
			});
			// webscocket 连接
			connectWebSocket()

			
		},
		onShow: async function() {
			console.log('App Show')

		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {

		}
	}
</script>

<style>
	@import "@/static/font/iconfont.css";

	/*每个页面公共css */
</style>